﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using N2;
using N2.Integrity;
using FlexiCommerce.Web.Templates;

namespace FlexiCommerce.Web.Addons.FC.Items
{
    [Definition("Category Products", "CategoryProducts")]
    [AllowedZones(Zones.Left, Zones.Right, Zones.Content)]
    [RestrictParents(Types = new Type[] { typeof(CategoryPage) })]
    public class CategoryProductsItem : AbstractDataBoundStoreItem
    {
        protected override string TemplateName
        {
            get
            {
                return "CategoryProducts";
            }
        }

        public override bool DoesDataBoundItemExist()
        {
            return (FlexiCommerce.Context.CurrentCategory != null);
        }
    }
}
